#ifndef _PLAYER_ENTITY_
#define _PLAYER_ENTITY_

#include "Entity.h"
#include "ITickable.h"

#define MAX_ENERGY 100
#define MIN_ENERGY 0

class PlayerEntity : public Entity
{
public:
	PlayerEntity();
	virtual ~PlayerEntity();

	virtual void Render();
	virtual void Tick();

	virtual void KeyboardInput(unsigned char c, int x, int y);
	virtual void ProcessSpecialInput(int key, int x, int y);
	
	virtual bool Move(const MoveInfo &m);
	virtual void Collide(Entity * ent);
	virtual bool ConsumesUponsEntry();

protected:
	int m_energy;

	void AddToEnergy(int i);
	void SubtractFromEnergy(int i);
};

#endif //_PLAYER_ENTITY_